package homework6;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class homework6 {
    public static void main(String[] args) {
        FileCopy task1 = new FileCopy("mao.PNG", "maocopy.PNG");
        FileCopy task2 = new FileCopy("tu.JPG", "tucopy.JPG");

        Thread thread1 = new Thread(task1);
        Thread thread2 = new Thread(task2);
        thread1.start();
        thread2.start();
    }
}
